package com.ruoyi.mail.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ruoyi.mail.service.MailManagementService;

@Controller
@RequestMapping("mail")
public class MailIndexController {

    protected final MailManagementService managementService;

    public MailIndexController(MailManagementService managementService) {
        this.managementService = managementService;
    }

    @RequestMapping("index")
    public String index() {
        managementService.ChangeMailSetting("1447807914@qq.com","iqcurmyhnerifhch");

        return "mail/index";
    }

    @RequestMapping("compose")
    public String compose() {
        return "mail/compose";
    }

    @RequestMapping("read/mail")
    public String readMail() {
        return "mail/readMail";
    }

}
